Skip to main content
Plugins / Reviewdog golangci-lint

Reviewdog golangci-lint

by Woodpecker Authors

plugin to do code review using golangci-lint using Woodpecker CI pull request builds


Woodpecker CI plugin check code with golangci-lint and report results as Pull Request code review using Reviewdog.

Features

  • Automatically detect Forge platform and URL
  • Support multiple forges - Gitea, Forgejo, Github, Gitlab

Settings

Settings Name Default Description
token none sets Forge API token for
config none sets the custom configuration file path to use
no-config false sets to not use configuation file
timeout 1m sets how long to wait for analysis to complete
fast false sets to use only fast linters
tests true sets whether to lint also test files
presets none list of presets to use
enable none list of linters to use
disable none list of linters to disable

Advanced settings

Settings Name Default Description
debug false enable debug mode
tool-name golangci custom tool name to report

Examples

  review:
    image: woodpeckerci/plugin-reviewdog-golangci-lint
    settings:
      token:
        from_secret: botuser_token
    when:
      event: pull_request